﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Server.Model
{
    public class StatusHistory
    {
        public DateTime StartTime { get; set; }
        public DateTime? EndTime { get; set; }

        public string Status { get; set; }

        public string StrStartTime
        {
            get
            {
                return StartTime.ToString("HH:ss:MM");
            }
        }
        public string StrEndTime
        {
            get
            {
                if (EndTime == null)
                {
                    return "现在";
                }
                else
                {
                    return EndTime.Value.ToString("HH:ss:MM");
                }
            }
        }
    }
}
